<?php
namespace Demo\App\Middleware;

use Demo\App\Service\IdInterface;
use Swork\Bean\Annotation\GlobalMiddleware;
use Swork\Bean\Annotation\Middleware;
use Swork\Bean\Annotation\Service;
use Swork\Bean\BeanCollector;
use Swork\Middleware\BeforeMiddlewareInterface;
use Swork\Server\Http\Argument;

/**
 * 权限校验中间件
 * @GlobalMiddleware()
 * @Annotation
 */
class GlobalBeforeMiddlewareA extends BeanCollector implements BeforeMiddlewareInterface
{
    /**
     * 中间件处理层
     * @param Argument $argument 请求参数
     */
    public function process(Argument $argument)
    {
//        echo 'GlobalBeforeMiddlewareA'. PHP_EOL;
    }
}
